<?php if ( ! defined('BASEPATH')) exit('This file does not run directly. Sorry.'); ?>
<?php
/**
 * Kalaisoo.
 *
 * A lightweight no-framework framework written in PHP.
 *
 * @package Kalaisoo
 * @author $Author: info@sah-company.com $
 * @version $Id: report_column.php 142 2012-01-24 22:24:34Z info@sah-company.com $
 */

/**
 * Kalaisoo Report_column Model Class.
 *
 * @package Kalaisoo
 * @subpackage Model
 * @author $Author: info@sah-company.com $
 */
class Model_Report_column extends Model
{
	/**
	 * __construct.
	 */
	public function construct()
	{
		parent::__construct();
	}
	
	/**
	 * returns the tags of a bean.
	 *
	 * @return array
	 */
	public function getTags() {
		return array(
		);
	}

	/**
	 * loads the array $this->gestalt of this bean for use with Model::gestalt().
	 */
	public function loadGestalten()
	{
		$this->gestalt['default'] = array(
			array(
				'type' => 'select',
				'name' => 'attribute',
				'parameters' => array(
					'session' => 'options_fieldnames_for_report'
				)
			),
			array(
				'type' => 'number',
				'name' => 'width',
				'help' => __('report_column_width_help'),
				'parameters' => array(
					'min' => 1,
					'max' => 100,
					'step' => 1
				)
			),
			array(
				'type' => 'number',
				'name' => 'sequence',
				'parameters' => array(
					'min' => 1,
					'max' => 1000,
					'step' => 1
				)
			)
		);
	}

	/**
	 * validates the data and returns either true or false.
	 *
	 * @return bool
	 */
	public function validate()
	{
		$valid = true;
		return $valid;
	}

	/**
	 * open.
	 */
	public function open()
	{
	}

	/**
	 * dispense.
	 */
	public function dispense()
	{
	}

	/**
	 * update.
	 */
	public function update()
	{
	}
	
	/**
	 * after_update.
	 */
	public function after_update()
	{
	}
	
	/**
	 * delete.
	 */
	public function delete()
	{
	}
	
	/**
	 * after_delete.
	 */
	public function after_delete()
	{
	}
}
?>